package com.ljf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ljf.dto.StoreInPageQuery;
import com.ljf.dto.StoreOutPageQuery;
import com.ljf.entity.DetailStoreGoods;
import com.ljf.vo.DetailStoreGoodsOutVo;
import com.ljf.vo.DetailStoreGoodsVo;

import java.util.List;
import java.util.Map;

public interface DetailStoreGoodsService extends IService<DetailStoreGoods> {
    Map<String, Object> initOutOptions();

    Page<DetailStoreGoodsOutVo> pageQuery(StoreOutPageQuery so);

    void deleteOut(String cn);

    Page<DetailStoreGoodsVo> queryPage(StoreInPageQuery si);

    void saveIn(DetailStoreGoods detailStoreGoods, String token);

    void deleteIn(String cn);

    void saveOut(DetailStoreGoods detailStoreGoods, String token);

    List<Map<String,Object>> changeOutGoods(Long gid);

    List<Map<String,Object>> changeOutStore(Long storeId);

    DetailStoreGoodsOutVo queryOutGoods(Long goodsId, Long storeId);
}
